package com.sky.service;
import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.entity.Dish;
import com.sky.result.PageResult;
import com.sky.vo.DishVO;
import java.util.List;

public interface DishService {
    public default void saveWithFlavor(DishDTO dishDTO) {}

    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);
    //批量删除
    void deleteBatch(List<Long> ids);

    DishVO getByIdWithFlavor(Long id);

    void updateWithFlavor(DishDTO dishDTO);
    //启售停售
    void startOrStop(Integer status, Long id);

    //根据分类id查询菜品
    List<Dish> getByCategoryId(Long categoryId);
    //条件查询菜品和口味
    List<DishVO> listWithFlavor(Dish dish);
}
